import { defineStore } from 'pinia'

/**
 * 存储标题信息
 */
export const titleStore = defineStore({
    id: 'titleStore',
    state: () => ({
        title: `心愿墙`,
    }),
    getters: {
        getTitle: (state) => state.title,
    },
    actions: {
        setTtile(title: string) {
            this.title = title;
        },
    }
})
